package com.ruoyi.sale.domain;

import java.math.BigDecimal;

import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

/**
 * 销售退货产品对象 t_sale_return_product
 * 
 * @author ruoyi
 * @date 2024-11-04
 */
@Setter
@Getter
public class SaleReturnProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 销售退货 id */
    @Excel(name = "销售退货 id")
    private Long returnId;

    /** 仓库编号 */
    @Excel(name = "仓库编号")
    private Long warehouseId;

    /** 产品编号 */
    @Excel(name = "产品编号")
    private Long productId;

    /** 数量 */
    @Excel(name = "数量")
    private BigDecimal count;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("returnId", getReturnId())
            .append("warehouseId", getWarehouseId())
            .append("productId", getProductId())
            .append("count", getCount())
            .append("remark", getRemark())
            .toString();
    }
}
